#include"Shm.hpp"
#include"Fifo.hpp"

int main()
{
    shm s(ROOT);
    NamedFifo d(".","hhh");
    FileOper o(".","hhh");
    o.OpenForRade();
    while(true)
    {
        if(o.Read())
        {
            printf("%s\n",(char*)s.add());
        }
        else
        {
            break;
        }
    }
    o.Close();
    return 0;
}